<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<ul class="box1-ul">
			
		</ul>
		<script src="jquery-3.4.1.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			var myDate = new Date;
			var n = myDate.getFullYear();//获取当前年
			var y = myDate.getMonth()+1;//获取当前月
			var r = myDate.getDate();//获取当前日
		
			$.ajax({
				type:'get',
				url:'http://v.juhe.cn/calendar/day',
				dataType: 'jsonp',
				data:{
					'date':''+n+'-'+y+'-'+r+'',
					'key':'f3407698eb45b716d7dc32f6c36968e9',
				},
				success:function(d,s,x){
					console.log(d)
					var oli=`
						<li>日期${d.result.data.date}</li>
						<li>农历${d.result.data.lunar}</li>
						<li>星期${d.result.data.weekday}</li>
						<li>宜${d.result.data.suit}</li>
						<li>忌${d.result.data.avoid}</li>
					`;
					$(".box1-ul").append(oli)
				},
				
			});
		</script>
	</body>
</html>
